use std::hint::black_box;
use criterion::{criterion_group, criterion_main, Criterion};

fn fibonacci(n: u64) -> u64 {
    match n {
        0 => 1,
        1 => 1,
        n => fibonacci(n-1) + fibonacci(n-2),
    }
}

fn criterion_benchmark(c: &mut Criterion) {
    c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20))));
}

// use crate::awk_interpretor::*;
// fn awk_interpretor_benchmark(c: &mut Criterion) {
//     c.bench_function("awk-implement", |b| {
//         b.iter(|| {
//             awk_interpretor::test().unwrap();
//         });
//     });
//     c.bench_with_input(id, input, f);
// }

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);